package com.yulongtian.interviewWorks.day20221112;

/**
 * https://leetcode.cn/problems/swap-numbers-lcci/
 * 可
 *
 * @author yulongTian
 * @create 2022-11-12 15:41
 */
public class Test01 {
    public static void main(String[] args) {
        int a = 3;
        int b = 5;


        System.out.println(a ^ b);

    }

    public int[] swapNumbers(int[] numbers) {
        numbers[0] ^= numbers[1];
        numbers[1] ^= numbers[0];
        numbers[0] ^= numbers[1];
        return numbers;
    }

}
